'use strict'

var Sequelize = require('sequelize');
var sequelize = require('../db');

const table = sequelize.define('articles', {
    // attributes
    // title:Sequelize.STRING,
    //Introduction:Sequelize.STRING
    jobName: {//职位名
        type: Sequelize.STRING,
        allowNull: false
    },
    company: {//公司
        type: Sequelize.STRING,
        allowNull: false
    },
    Address: {//地址
        type: Sequelize.STRING,
        allowNull: false
    },
    Salary: {//薪资 
        type: Sequelize.STRING,
        allowNull: false
    },
    Releasetime: {//发布时间
        type: Sequelize.STRING,
        allowNull: false 
    }
}, {
    // options
    // freezeTableName: true
});

 
module.exports = table;